
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <script src="../js/jquery.min.js"></script>
    <!-- <script src="../js/jquery.params.js"></script> -->
    <title>a页面</title>
    <script>
        $(function(){
             name = $("#name").text();
             age = $("#age").text();
            $("#btn").on("click",function(){
               jump1();
            });
        });
        function jump1(){
            url = "b.html?name="+name+"&age="+age;//此处拼接内容
            window.location = url;
        }

        cc=function(){
            window.location="b.html?lname=liming"
        }
    </script>
</head>
<body>
    <button id="bnt2" onclick="cc()">tiao</button>
   <div id="name">tony</div>
   <div id="age">23</div>
   <button id="btn" onclick="jump1()">跳转</button>
</body>
</html>